<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>list的user展示</h1>


<table border="1" align="center" >
    <tr>
        <th>id</th>
        <th>姓名</th>
        <th>密码</th>
        <th>性别</th>
        <th>生日</th>
        <th>操作</th>

    </tr>
    <tr th:each="user : ${users}">
        <td th:text="${user.id}"></td>
        <td th:text="${user.nam}"></td>
        <td th:text="${user.pwd}"></td>
        <td th:text="${user.sex}"></td>
        <td th:text="${#dates.format(user.birth,'yyyy-MM-dd')}"></td>
<!--        <td ><a href="/user/deleteUser">删除</a>&nbsp;&nbsp;<a href="">修改</a></td>-->
        <td ><a th:href="@{/user/deleteUser(id=${user.id})}">删除</a>&nbsp;&nbsp;
            <a th:href="@{/user/findById(id=${user.id})}">修改</a></td>
    </tr>
<!--    <td colspan="6"><a th:href="@{/Add}">添加</a></td>-->
</table>
<a th:href="@{add.html}">添加</a>
</body>
</html>